<script lang="ts" setup>
import 'vue-json-pretty/lib/styles.css';
import VueJsonPretty from "vue-json-pretty";

const props = defineProps({
  data: {type: Object}
})
</script>

<template>
  <span v-if="!data">暂无数据</span>
  <vue-json-pretty v-else :data="JSON.parse(JSON.stringify(data))" :deep="1"/>
</template>

<style scoped>

</style>